package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.CreditDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CreditDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CreditDetail record);

    CreditDetail selectByPrimaryKey(Long id);

    List<CreditDetail> selectAll();

    int updateByPrimaryKey(CreditDetail record);

    int selectGradeByCatalogIdAndName(@Param("creditCatalogId") Long creditCatalogId, @Param("name") String name);
}